/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Multi Use Container Entity Type Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getMultiUseContainerEntityTypeMember1()
 * @model extendedMetaData="name='MultiUseContainerEntityType_._member_._1'"
 * @generated
 */
public enum MultiUseContainerEntityTypeMember1 implements Enumerator {
	/**
	 * The '<em><b>BOX</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BOX_VALUE
	 * @generated
	 * @ordered
	 */
	BOX(0, "BOX", "BOX"),

	/**
	 * The '<em><b>CAN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CAN_VALUE
	 * @generated
	 * @ordered
	 */
	CAN(1, "CAN", "CAN"),

	/**
	 * The '<em><b>CNSTR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CNSTR_VALUE
	 * @generated
	 * @ordered
	 */
	CNSTR(2, "CNSTR", "CNSTR"),

	/**
	 * The '<em><b>CART</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CART_VALUE
	 * @generated
	 * @ordered
	 */
	CART(3, "CART", "CART"),

	/**
	 * The '<em><b>JAR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JAR_VALUE
	 * @generated
	 * @ordered
	 */
	JAR(4, "JAR", "JAR"),

	/**
	 * The '<em><b>JUG</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #JUG_VALUE
	 * @generated
	 * @ordered
	 */
	JUG(5, "JUG", "JUG"),

	/**
	 * The '<em><b>TIN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TIN_VALUE
	 * @generated
	 * @ordered
	 */
	TIN(6, "TIN", "TIN"),

	/**
	 * The '<em><b>TUB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TUB_VALUE
	 * @generated
	 * @ordered
	 */
	TUB(7, "TUB", "TUB"),

	/**
	 * The '<em><b>TUBE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TUBE_VALUE
	 * @generated
	 * @ordered
	 */
	TUBE(8, "TUBE", "TUBE"),

	/**
	 * The '<em><b>VIAL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #VIAL_VALUE
	 * @generated
	 * @ordered
	 */
	VIAL(9, "VIAL", "VIAL");

	/**
	 * The '<em><b>BOX</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BOX</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BOX
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BOX_VALUE = 0;

	/**
	 * The '<em><b>CAN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CAN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CAN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CAN_VALUE = 1;

	/**
	 * The '<em><b>CNSTR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CNSTR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CNSTR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CNSTR_VALUE = 2;

	/**
	 * The '<em><b>CART</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CART</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CART
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CART_VALUE = 3;

	/**
	 * The '<em><b>JAR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JAR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JAR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JAR_VALUE = 4;

	/**
	 * The '<em><b>JUG</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>JUG</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #JUG
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int JUG_VALUE = 5;

	/**
	 * The '<em><b>TIN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TIN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TIN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TIN_VALUE = 6;

	/**
	 * The '<em><b>TUB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TUB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TUB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TUB_VALUE = 7;

	/**
	 * The '<em><b>TUBE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TUBE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TUBE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TUBE_VALUE = 8;

	/**
	 * The '<em><b>VIAL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>VIAL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #VIAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int VIAL_VALUE = 9;

	/**
	 * An array of all the '<em><b>Multi Use Container Entity Type Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final MultiUseContainerEntityTypeMember1[] VALUES_ARRAY =
		new MultiUseContainerEntityTypeMember1[] {
			BOX,
			CAN,
			CNSTR,
			CART,
			JAR,
			JUG,
			TIN,
			TUB,
			TUBE,
			VIAL,
		};

	/**
	 * A public read-only list of all the '<em><b>Multi Use Container Entity Type Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<MultiUseContainerEntityTypeMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Multi Use Container Entity Type Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MultiUseContainerEntityTypeMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MultiUseContainerEntityTypeMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Multi Use Container Entity Type Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MultiUseContainerEntityTypeMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MultiUseContainerEntityTypeMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Multi Use Container Entity Type Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MultiUseContainerEntityTypeMember1 get(int value) {
		switch (value) {
			case BOX_VALUE: return BOX;
			case CAN_VALUE: return CAN;
			case CNSTR_VALUE: return CNSTR;
			case CART_VALUE: return CART;
			case JAR_VALUE: return JAR;
			case JUG_VALUE: return JUG;
			case TIN_VALUE: return TIN;
			case TUB_VALUE: return TUB;
			case TUBE_VALUE: return TUBE;
			case VIAL_VALUE: return VIAL;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private MultiUseContainerEntityTypeMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //MultiUseContainerEntityTypeMember1
